package com.boot.param;

import com.alibaba.fastjson.JSON;
import lombok.Data;

/**
 * @author onlyone
 */
@Data
public class Student {

    private String  name;
    private Integer score;

    public void addScore(int addValue) {
        System.out.println("加分：" + addValue);
        score += addValue;
        System.out.println(JSON.toJSONString(this));
    }
}
